﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace RSSReader.classesCustom
{
    public class Site 
    {        
        private Int32 _ID;
        private String _name;
        private String _rssAddress;        
        private String _description;
        private String _logo;
        private Boolean _visibile;

        //copy constructor
        public Site(Site s)
        {
            this._ID = s.ID;
            this._name = s.name;
            this._rssAddress = s.rssAddress;
            this._description = s.description;
            this._logo = s.logo;
            this._visibile = s.visible;
        }

        public Site()
        {
            this._ID = 0;
            this._name = "";
            this._rssAddress = "";
            this._description = "";
            this._logo = "";
            this._visibile = false;
        }


        //properties
        public int ID
        {
            get
            { return _ID; }
            set
            { _ID = value; }
        }
        public String name
        {
            get
            { return _name; }
            set
            { _name = value; }
        }
        public String rssAddress
        {
            get
            { return _rssAddress; }
            set
            { _rssAddress = value; }
        }
        public String description
        {
            get
            { return _description; }
            set
            { _description = value; }
        }
        public String logo
        {
            get
            { return _logo; }
            set
            { _logo = value; }
        }
        public Boolean visible
        {
            get
            { return _visibile; }
            set
            { _visibile = value; }
        }
    }
}